package com.usefullc.user.param;

import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.validator.UsefulValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("绑定员工编辑参数")
@Data
public class BindEmployeeParam extends BaseDomain {


    @UsefulPropertyVerify(required = true)
    @ApiModelProperty(notes = "用户ID")
    private Long userId;

    @UsefulPropertyVerify(required = true,minLen = 2,maxLen = 8)
    @ApiModelProperty(notes = "工号")
    private String jobNo;

    @UsefulPropertyVerify(required = true,minLen = 2,maxLen = 5)
    @ApiModelProperty(notes = "用户姓名")
    private String userName;

    @UsefulPropertyVerify(required = true,type= ValidTypeEnum.PHONE)
    @ApiModelProperty(notes = "座机号码")
    private String phone;

    @ApiModelProperty(notes = "角色")
    private List<Long> roleIds;

    @ApiModelProperty(notes = "职位ID")
    private Long positionId;

    @ApiModelProperty(notes = "部门ID")
    private Long deptId;



}
